package com.itheima.demo.service.impl;

import com.itheima.demo.dal.UserMapper;
import com.itheima.demo.entity.User;
import com.itheima.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;



    public void save(User user) {
        userMapper.insertUser(user);
    }
}
